package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WcComOrderMapper;
import com.ruoyi.system.domain.WcComOrder;
import com.ruoyi.system.service.IWcComOrderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 订单发起Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-01-20
 */
@Service
public class WcComOrderServiceImpl implements IWcComOrderService 
{
    @Autowired
    private WcComOrderMapper wcComOrderMapper;

    /**
     * 查询订单发起
     * 
     * @param id 订单发起ID
     * @return 订单发起
     */
    @Override
    public WcComOrder selectWcComOrderById(Long id)
    {
        return wcComOrderMapper.selectWcComOrderById(id);
    }

    /**
     * 查询订单发起列表
     * 
     * @param wcComOrder 订单发起
     * @return 订单发起
     */
    @Override
    public List<WcComOrder> selectWcComOrderList(WcComOrder wcComOrder)
    {
        return wcComOrderMapper.selectWcComOrderList(wcComOrder);
    }


    /**
     * 新增订单发起
     * 
     * @param wcComOrder 订单发起
     * @return 结果
     */
    @Override
    public int insertWcComOrder(WcComOrder wcComOrder)
    {
        return wcComOrderMapper.insertWcComOrder(wcComOrder);
    }

    /**
     * 修改订单发起
     * 
     * @param wcComOrder 订单发起
     * @return 结果
     */
    @Override
    public int updateWcComOrder(WcComOrder wcComOrder)
    {
        return wcComOrderMapper.updateWcComOrder(wcComOrder);
    }

    /**
     * 删除订单发起对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWcComOrderByIds(String ids)
    {
        return wcComOrderMapper.deleteWcComOrderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除订单发起信息
     * 
     * @param id 订单发起ID
     * @return 结果
     */
    @Override
    public int deleteWcComOrderById(Long id)
    {
        return wcComOrderMapper.deleteWcComOrderById(id);
    }
}
